<template>
  <div>
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item v-for="title in titles" :key="title">{{title}}</el-breadcrumb-item>
    </el-breadcrumb>
  </div>
</template>

<script>
  export default {
    name: "Breadcrumb",
    props:{
      separetorClass:{
        type:String,
        default:function () {

          return 'el-icon-arrow-right'
        }
      },
      titles:{
        type: Array,
        default:function () {

          return []
        }
      }
    }
  }
</script>

<style scoped>

  .el-breadcrumb{
    margin-bottom: 20px;
  }
</style>
